<template>
        <div>
            <textarea  :name="inputDefine.name" class="form-control" :value="elementData" @input="inputChange($event)"/>
        </div>
</template>

<script>
    export default{
        data(){
            return{}
        },
        props:{
          inputDefine:{
            type:Object,
            required: true
          },
          elementData:{
            required: true
          }
        },
        methods:{
            inputChange:function(event){
               var dataInfo={"newValue":event.target.value}
               this.$emit('dataChange',this.inputDefine,dataInfo);
            }
          }
    }
</script>
